<?php
namespace zake\foundation\able\traits;


use zake\foundation\able\ProtocolAble;

trait PointTrait
{
    /**
     * @var ProtocolAble | null
     */
    protected $protocol;



    /**
     *
     * @param ProtocolAble $protocol
     * @return bool
     *
     * @author liu.bin 2020-04-02 22:21
     */
    public function setProtocol(ProtocolAble $protocol)
    {
        $this->protocol = $protocol;
        return true;
    }


    /**
     *
     * @return ProtocolAble|null
     *
     * @author liu.bin 2020-04-02 22:21
     */
    public function getProtocol()
    {
        return $this->protocol;
    }
}